package com.wjtc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wjtc.service.entity.User;
import com.wjtc.service.inter.UserService;
import com.wjtc.service.mapping.UserMapper;

@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper;

	@Override
	public int saveUser(User user) {

		return userMapper.insert(user);
	}

	@Override
	public User findUserByPk(String id) {

		return userMapper.selectByPrimaryKey(id);
	}

}
